home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows News 2010 Summer - Disc 1
/
WN_Ete2010_CD1.iso
/
Onglet5
/
Weezo
/
Weezo setup.exe
/
{code_appDir}
/
www
/
res
/
administration
/
config
/
main.php
next >
Wrap
PHP Script
|
2010-05-19
|
2KB
|
62 lines
<?php
/**
* Accounts remote configuration
*
* PHP version 5
*
* LICENSE: This source file is subject to version 3.0 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_0.txt. If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to license@php.net so we can mail you a copy immediately.
*
* @category NA
* @package NA
* @author Nicolas Bruley / Peer 2 World <contact@weezo.net>
* @copyright 2005-2009 Nicolas Bruley / Peer 2 World
* @license http://www.php.net/license/3_0.txt PHP License 3.0
* @version CVS: $Id:$
* @link http://www.weezo.net
* @since File available since Release 2.0.0
*/
/**
* @desc Return link for config window
*
* @param unknown_type $scriptName
* @param unknown_type $caption
* @param unknown_type $smallIcon
* @param unknown_type $w
* @param unknown_type $h
* @return unknown
*/
function link($scriptName,$caption,$smallIcon,$w=320,$h=320){
return "cw=winMe.openWindow('".dirname($_SERVER['PHP_SELF']).'/'.$scriptName."',{".
"'id':'".$scriptName."',".
"'caption':'".addslashes($caption)."',".
"'w':".$w.",".
"'h':".$h.",".
"'icon':'".$smallIcon."'})";
}
require(INCLUDE_DIR.'outputFunctions.php');
cfInsertHEAD();
$items=array();
// General parameters (windows, language)
$items[]=array('link'=>link('windows.php',cfCaption('desktop'),outIcon('win'),340,300),'image'=>outIcon('winM'),'caption'=>cfCaption('desktop'));
// Password
if(cfUGetVar('accountType')=='singleUser') $items[]=array('link'=>link('password.php',cfCaption('genPassword'),outIcon('lock'),320,170),'image'=>outIcon('pwdM'),'caption'=>cfCaption('genPassword'));
// Theme
if(cfGGetVar('allowUserThemeChange'))
$items[]=array('link'=>link('theme.php',cfCaption('genTheme'),outIcon('theme'),840,600),'image'=>outIcon('themeM'),'caption'=>cfCaption('genTheme'));
// Wallpaper
if(cfUGetVar('accountType')=='singleUser') $items[]=array('link'=>link('wallpaper.php',cfCaption('genWallpaper'),outIcon('wallpaper'),420,400),'image'=>outIcon('wallpaperM'),'caption'=>cfCaption('genWallpaper'));
echo '<div style="vertical-align:top">';
echo outIconsList($items);
echo outKeyHandler('D',array('27'=>'winMe.closeMe()'),true);
?>
</div></body>